import { createRouter, createWebHistory } from 'vue-router';
import P5Analyzer from '../components/p5/index.vue'; 
import DLTAnalyzer from '../components/dlt/index.vue';

const routes = [
  {
    path: '/',
    redirect: '/p5'
  },
  {
    path: '/p5',
    name: 'p5',
    component: P5Analyzer,
    meta: {
      title: '排列五分析'
    }
  },
  {
    path: '/dlt',
    name: 'dlt',
    component: DLTAnalyzer,
    meta: {
      title: '大乐透分析'
    }
  }
];

const router = createRouter({
  history: createWebHistory(),
  routes
});

export default router;